﻿

//When program loads, pause button is not visible
pause_btn._visible = false;

//When the pause button is hit, the play button takes it's place. And vise versa
pause_btn.onRelease = function ()
{
    this._visible = 0;
    play_btn._visible = 1;
};
play_btn.onRelease = function()
{
	this._visible = 0;
	pause_btn._visible = 1;
}
//Code for the change windows buttons. When the buttons are rolled over the text for Now Playing, Video, Browse Files, and Playlist slides in and out according to the action of the user.
_root.Change_Windows_Buttons_MC.change_playlist_btn.onRollOver = function()
{
	gotoAndPlay("playlistover");
}
_root.Change_Windows_Buttons_MC.change_playlist_btn.onRollOut = function()
{
	gotoAndPlay("playlistoff");
}
_root.Change_Windows_Buttons_MC.change_window_video_btn.onRollOver = function()
{
	gotoAndPlay("videoover");
}
_root.Change_Windows_Buttons_MC.change_window_video_btn.onRollOut = function()
{
	gotoAndPlay("videooff");
}
_root.Change_Windows_Buttons_MC.change_window_now_playing_btn.onRollOver = function()
{
	gotoAndPlay("nowplayingover");
}
_root.Change_Windows_Buttons_MC.change_window_now_playing_btn.onRollOut = function()
{
	gotoAndPlay("nowplayingoff");
}
_root.Change_Windows_Buttons_MC.change_browse_files_btn.onRollOver = function()
{
	gotoAndPlay("browseover");
}
_root.Change_Windows_Buttons_MC.change_browse_files_btn.onRollOut = function()
{
	gotoAndPlay("browseoff");
}
_root.Change_Windows_Buttons_MC.change_browse_files_btn.onRelease = function()
{
	tellTarget(_root.Window_Controller)
	{
		gotoAndStop(2);
	}
}